package com.lyz.dz.des.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class classinfo {

    @TableId(type = IdType.ASSIGN_ID)
    private String uid;

    @NotNull (message = "班级id不允许为空")
    private String classUid;

    @NotBlank(message = "classname is null")
    private String className;

    @NotBlank(message = "classWhich is null")
    private String classWhich;

    @NotBlank(message = "teacherUid is null")
    private String teacherUid;

    @NotBlank( message = "teacherName is null")
    private String teacherName;

    @NotBlank(message = "classCourse is null")
    private String classCourse;

    @NotBlank(message = "classWhatDay is null")
    private String classWhatDay;

    @NotBlank(message = "clasPpt is null")
    private String classPpt;

    @NotBlank(message = "classSleep is null")
    private String classSleep;

    @NotBlank(message = "classPhonePlay")
    private String classPhonePlay;

    @NotBlank(message = "classAtmosphere is  null")
    private String classAtmosphere;

    @NotBlank (message = "classImpression is null")
    private String classImpression;

    @NotBlank(message = "classSpecila is null")
    private String classSpecila;

    @NotNull(message = "classDate is null")
    private java.sql.Date classDate;

    @TableField(fill = FieldFill.INSERT)
    private Date insertTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
